package com.xtedu.examproject.entity;

import java.io.Serializable;
import java.sql.Date;
public class Course implements Serializable {
    private int id;
    private String name;
    private int subjectId;
    private int sort;
    private Date createDate;
    private String description;
    private boolean state;

    public Course(int id, String name, int subjectId, int sort, Date createDate, String description, boolean state) {
        this.id = id;
        this.name = name;
        this.subjectId = subjectId;
        this.sort = sort;
        this.createDate = createDate;
        this.description = description;
        this.state = state;
    }

    public Course() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSubjectId() {
        return subjectId;
    }

    public void setSubjectId(int subjectId) {
        this.subjectId = subjectId;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public boolean isState() {
        return state;
    }

    public void setState(boolean state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "[Course id=" + id + ", name=" + name + ", subjectId=" + subjectId + ", sort=" + sort + ", createDate=" + createDate + ", description=" + description + ", state=" + state + "]" + "\n";
    }
}
